package com.ucenter.server.auth.service;

import org.springframework.stereotype.Component;

import com.system.handle.model.ResponseFrame;
import com.ucenter.server.auth.pojo.RoleInfo;

/**
 * role_info的Service
 * @author autoCode
 * @date 2018-12-01 09:50:44
 * @version V1.0.0
 */
@Component
public interface RoleInfoService {
	
	/**
	 * 保存或修改
	 * @param roleInfo
	 * @return
	 */
	public ResponseFrame saveOrUpdate(RoleInfo roleInfo);
	
	/**
	 * 根据roleId获取对象
	 * @param roleId
	 * @return
	 */
	public RoleInfo get(String roleId);

	/**
	 * 分页获取对象
	 * @param roleInfo
	 * @return
	 */
	public ResponseFrame pageQuery(RoleInfo roleInfo);
	
	/**
	 * 根据roleId删除对象
	 * @param roleId
	 * @return
	 */
	public ResponseFrame delete(String roleId);
}